import {defineStore} from 'pinia'
import {ref} from 'vue'
// 定义store
export var useUserStore = defineStore('user',()=>{
    var userinfo = ref({})
    var saveUserinfo = (payload)=>{
        userinfo.value = payload
    }
    return {
        userinfo,
        saveUserinfo
    }
})